package com.blb.exam.dao.impl;

import com.blb.exam.common.entity.Subject;
import com.blb.exam.common.util.DBUtils;
import com.blb.exam.dao.SubjectDAO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class SubjectDAOImpl implements SubjectDAO {
    @Override
    public List<Subject> selectAll() {
        return DBUtils.executeQuery(Subject.class,"select * from t_subject");
    }
}
